#pragma once
#include "unit.h"
#include "Range.h"

class CRange;
class CArrow :
	public CUnit
{
public:
	enum State {
		ARROW_DAMAGE,
		ARROW_HEAL,
		ARROW_TOTAL
	};

	State state;

	CArrow(CRange*, CUnit*, State Newstate = ARROW_DAMAGE);
	~CArrow(void);

	void Render(void);
	void Update(float);
	void UnitInteraction(CUnit*);
	void PrintState(int, int, float, float, float, char*) ;
	void DealDamageTo(CUnit*);
private:
	Vector3D Direction;
};

